﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Quality_Calculator.Skills.Carpenter
{
    class ByregotsBlessing : TouchSkill
    {
        public ByregotsBlessing()
        {
            Name = "Byregot's Blessing";
            CpCost = 24;
            DurabilityCost = 10;
            Icon = global::Quality_Calculator.Properties.Resources.Byregot_s_Blessing;
            Chance = 90;
        }

        public override void SpellEffect(Synthesis synth)
        {
            UsageCount++;
            double efficiency = 1.0 + 0.2 * synth.InnerQuietStacks;            
            GenericTouch(efficiency, Chance, synth);
            synth.Buffs.RemoveAll(p => p.Spell.Enum == eSpell.InnerQuiet);
        }
    }
}
